Adding a C1FlexGrid control to your application requires the exact same steps as adding any custom control. There's nothing special about theC1FlexGrid in this regard. You start by adding a reference to the C1FlexGrid assembly to your project, and then add the control using XAML:
| WPF XAML |
Copy Code
|
|---|---|
<Window x:Class="FilterRow.MainWindow" ... xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml" ... > <Grid x:Name="LayoutRoot"> <c1:C1FlexGrid/> </Grid> </Window> |
|
| Silverlight XAML |
Copy Code
|
|---|---|
<UserControl x:Class="MainTestApplication.MainPage" ... xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml" ... > <Grid x:Name="LayoutRoot"> <c1:C1FlexGrid/> </Grid> </UserControl> |
|
You can also create the C1FlexGrid in code:
| C# code |
Copy Code
|
|---|---|
var fg = new C1.Silverlight.FlexGrid.C1FlexGrid(); LayoutRoot.Children.Add(fg); |
|